Skip to content

Add support for entropy device - #24

Closed
sbutz wants to merge 1 commit into
rust-osdev:mainfrom
sbutz:sb/entropy
Closed

Add support for entropy device#24
sbutz wants to merge 1 commit into
rust-osdev:mainfrom
sbutz:sb/entropy

Conversation

@sbutz

@sbutz sbutz commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@sbutz
sbutz marked this pull request as ready for review July 10, 2026 13:13
@mkroening mkroening self-assigned this Jul 10, 2026

@phip1611 phip1611 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not an expert of this crate but LGTM. Final approval should be given by @mkroening

@mkroening mkroening left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the wait. :)

Thanks for opening the PR.

Since the spec (Entropy device) does not define any feature bits or a device configuration layout, I think we should not add any empty placeholder types here.

Marking the device as supported is fine, but I think we should remove all code additions. Kernels can just use virtio::F for the features and () for the config if they need to specify a type. Depending on the kernel architecture, such a type might not be necessary, though, hence my hesitance to add them.

What do you think?

@sbutz

sbutz commented Aug 11, 2026

Copy link
Copy Markdown
Contributor Author

Marking the entropy device as supported while no explicit support is there might be confusing.
I'll close the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants